package com.jiexinyun.enums.homepage;

import lombok.Getter;

@Getter
public enum HomepageEnum {

    EQUIPMENTS_ASSETS(1, "设备资产", "总数N条 本年新增X，增长率Y%",
            new HomepageSubEnum[]{
                    HomepageSubEnum.EQUIPMENTS_ASSETS_SUB1,
                    HomepageSubEnum.EQUIPMENTS_ASSETS_SUB2}),
    ACCESSORIES_ASSETS(2, "备件资产", "总数N条 本月出入库比率X%",
            new HomepageSubEnum[]{
                    HomepageSubEnum.ACCESSORIES_ASSETS_SUB1,
                    HomepageSubEnum.ACCESSORIES_ASSETS_SUB2}),
    DEVICE_EVENT(3, "设备事件", "总数N条 本月完成率X%",
            new HomepageSubEnum[]{
                    HomepageSubEnum.DEVICE_EVENT_SUB1,
                    HomepageSubEnum.DEVICE_EVENT_SUB2}),
    MAINTENANCE_KNOWLEDGE(4, "维修知识", "总数N条 本月新增X，增长率Y%",
            new HomepageSubEnum[]{
                    HomepageSubEnum.MAINTENANCE_KNOWLEDGE_SUB1,
                    HomepageSubEnum.MAINTENANCE_KNOWLEDGE_SUB2}),
    PROCESSING_CAPACITY(5,"加工能力", "使用时间N小时 本月新增X，增长率Y%",
            new HomepageSubEnum[]{
                    HomepageSubEnum.PROCESSING_CAPACITY_SUB1,
                    HomepageSubEnum.PROCESSING_CAPACITY_SUB2});

    private final int type;
    private final String name;
    private final String description;
    private final HomepageSubEnum[] subEnums;

    HomepageEnum(int type, String name, String description, HomepageSubEnum[] subEnums) {
        this.type = type;
        this.name = name;
        this.description = description;
        this.subEnums = subEnums;
    }

}
